﻿using System;

namespace TestingConcurrencyBenchmark.Problems.ReadersWriters
{
    /// <summary>
    /// An interface for the reader writer problem
    /// </summary>
    public interface IReaderWriter
    {
        /// <summary>
        /// Performs a write action
        /// </summary>
        /// <param name="action">the write action</param>
        void Write(Action action);

        /// <summary>
        /// Performs a read action
        /// </summary>
        /// <param name="action">the read action</param>
        void Read(Action action);
    }
}